let id = getQueryString('productid')
console.log(id)
//let biaoti = $('.biaoti').get(0)
fetch('http://chst.vip:1234/api/getdiscountproduct?productid='+id)
    .then(body => body.json())
    .then(res => {
        console.log(res)
        res.result.forEach(item => {

            let biaoti = $('.biaoti').get(0)
            biaoti.innerText = item.productName
let mall=$('.mall').get(0)
mall.innerText=`${item.productFrom}丨${item.productTime}`
let i=$('.other i').get(0)
let span=$('.neirong span').get(0)
i.innerText=item.productTips 
let pp=$('.neirong div').get(0)
span.innerText=`${item.productInfo}${item.productInfo1}`

let bgimg=$('.bgimg').get(0)
bgimg.innerHTML=item.productImg

        })
    
    })
 